home *** CD-ROM | disk | FTP | other *** search
- #include "Shell.h"
- #include <graphics libraries.h>
- #include <graphics debugging.h>
-
- Boolean gDoneFlag = false;
- Rect gDeskRect;
- MenuHandle gShellMenuHandles[kNumShellMenus];
- long gClickTime;
-
- gxGraphicsClient gGraphicsClient;
-
- main (void)
- {
- EventRecord theEvent;
- CursHandle Curs;
-
- FlushEvents (everyEvent - diskMask, 0 );
- MaxApplZone();
- InitGraf (&thePort);
- InitFonts ();
- InitWindows ();
- InitMenus ();
- TEInit ();
- InitDialogs (nil);
- InitCursor ();
-
- Curs = GetCursor(watchCursor);
- SetCursor(*Curs);
-
- initshell();
-
- InitCursor();
-
- while(gDoneFlag == false)
- {
- UnloadSeg(initshell);
- WaitNextEvent(everyEvent, &theEvent, 0, nil);
- DoEvent(&theEvent);
- }
- BailOut();
- }
-
- /*---------------------------------
- BailOut() Clean up and split...
- ----------------------------------- */
-
- void BailOut(void)
- {
- AppCleanUp();
-
- GXExitGraphics(); /** Deallocate all of the default structures **/
- GXDisposeGraphicsClient(gGraphicsClient);
- ExitToShell();
- }
-